package unclassified.simple;


public class LCOF_50 {
    public char firstUniqChar(String s) {
        int[] res = new int[26];
        for (int i = 0; i < s.length(); i++) {
            res['z' - s.charAt(i)] = res['z' - s.charAt(i)] + 1;
        }
        for (int i = 0; i < s.length(); i++) {
            if (res['z' - s.charAt(i)] == 1) {
                return s.charAt(i);
            }
        }
        return ' ';
    }
}
